package cn.aopmin.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 图书实体
 * @author 白豆五
 * @since 2025/3/12
 */
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("book")
@Builder
@Data
public class Book extends BaseEntity {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 链接
     */
    private String url;

    /**
     * 简介
     */
    private String description;

    /**
     * 点赞数
     */
    private Long likedNum;
}